from Base import message, intersect, SS_VALID
from DRG import MDCF_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["36.0601","36.0602","36.0700","36.0700x004","36.0701"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合FM3入组条件，匹配规则：主手术匹配')

    if MDCF_DRG.FM39_group(record):
      return 'FM39'
        
    return 'FM3'
  else:
    return ''
    
